// pages/my/stores/stores.js
var app = getApp();
Page({
  data: {

  },
  onLoad: function (options) {
    var targetstr;
    var url = '';

    if (options.url) {
      url = options.url;
    }
    else if (options.target) {
      targetstr = options.target;
    }

    if (targetstr) {
      if (targetstr === 'qa') {
        url = 'https://mp.weixin.qq.com/s/zphvoYEZsIYXcNYQ1_9M1Q';
      }
      else if (targetstr === 'store') {
        url = 'https://mp.weixin.qq.com/s/4Ig1Y5j6aDpHWynqsAMQwg';
      }
      else if (targetstr === 'contact') {
        url = 'https://wx.withwheat.com/OrderUI/index.html?noauth#/memberRule';
      }
      else if (targetstr === 'gift') {
        url = 'https://mp.weixin.qq.com/s/Ay--lcYuEgCeesPmsUSftA';
      }
    }

    this.setData({
      urlsrc: url
    });
  },
  onShow: function () {

  },
  onHide: function () {

  },
  onUnload: function () {

  }
})
